# $Id: PKGBUILD 86696 2013-03-21 10:52:18Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Charles Mauch <cmauch@gmail.com>
# Contributor: Francois Charette <firmicus@gmx.net>

pkgname=perl-file-chdir
pkgver=0.1008
pkgrel=1
pkgdesc="a more sensible way to change directories "
arch=('any')
depends=('perl')
url="http://search.cpan.org/dist/File-chdir"
license=('GPL' 'PerlArtistic')
options=('!emptydirs')
source=(http://www.cpan.org/authors/id/D/DA/DAGOLDEN/File-chdir-$pkgver.tar.gz)
md5sums=('4b0bfb8135554ef1e4e1440b89befe09')

build() {
  cd  $srcdir/File-chdir-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd  $srcdir/File-chdir-$pkgver
  make install DESTDIR=$pkgdir
  find $pkgdir -name '.packlist' -delete
  find $pkgdir -name '*.pod' -delete
}
